package com.gzxx.domain.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * BaseDto
 *
 * @author chenjing
 */
@Data
@ApiModel(value = "通用传输实体", description = "通用传输实体")
public class BaseDto implements Serializable {

    private static final long serialVersionUID = 1004576483881909447L;

    @ApiModelProperty(value = "id", example = "123")
    @NotNull(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "状态", example = "0")
    @NotNull(message = "状态不能为空 0启用 1禁用")
    private Integer status;
}
